package com.ljkj.blockpay.model;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * Created by yp on 2022/3/14
 */
public class RechargeModel {
    @SerializedName("currencyType")
    private String currencyType;
    @SerializedName("currencyName")
    private String currencyName;
    @SerializedName("currencyImg")
    private String currencyImg;
    @SerializedName("network")
    private List<NetworkDTO> network;

    public String getCurrencyType() {
        return currencyType;
    }

    public void setCurrencyType(String currencyType) {
        this.currencyType = currencyType;
    }

    public String getCurrencyName() {
        return currencyName;
    }

    public void setCurrencyName(String currencyName) {
        this.currencyName = currencyName;
    }

    public String getCurrencyImg() {
        return currencyImg;
    }

    public void setCurrencyImg(String currencyImg) {
        this.currencyImg = currencyImg;
    }

    public List<NetworkDTO> getNetwork() {
        return network;
    }

    public void setNetwork(List<NetworkDTO> network) {
        this.network = network;
    }

    public static class NetworkDTO {
        @SerializedName("networkType")
        private String networkType;
        @SerializedName("networkName")
        private String networkName;
        @SerializedName("mainCurrency")
        private boolean mainCurrency;
        @SerializedName("currencyAccuracy")
        private int currencyAccuracy;
        @SerializedName("currencyMin")
        private String currencyMin;

        public String getNetworkType() {
            return networkType;
        }

        public void setNetworkType(String networkType) {
            this.networkType = networkType;
        }

        public String getNetworkName() {
            return networkName;
        }

        public void setNetworkName(String networkName) {
            this.networkName = networkName;
        }

        public boolean isMainCurrency() {
            return mainCurrency;
        }

        public void setMainCurrency(boolean mainCurrency) {
            this.mainCurrency = mainCurrency;
        }

        public int getCurrencyAccuracy() {
            return currencyAccuracy;
        }

        public void setCurrencyAccuracy(int currencyAccuracy) {
            this.currencyAccuracy = currencyAccuracy;
        }

        public String getCurrencyMin() {
            return currencyMin;
        }

        public void setCurrencyMin(String currencyMin) {
            this.currencyMin = currencyMin;
        }
    }
//    {
//        "currencyType": "ETH",
//            "currencyName": "ETH",
//            "currencyImg": "http:\/\/1.png",
//            "network": [
//        {
//            "networkType": "ETH",
//                "networkName": "ETH",
//                "mainCurrency": true,
//                "currencyAccuracy": 18,
//                "currencyMin": "0.05"
//        }
//                     ]
//    }


}
